home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / FRYANEGG.ZIP / TEST-4.POV < prev    next >
Encoding:
Text File  |  1996-08-31  |  2.6 KB  |  86 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "test-4.pov" - Test the big tree.
  6. //
  7. // Created by: Paul T. Dawson
  8. //             ptdawson@voicenet.com
  9. //             http://www.voicenet.com/~ptdawson
  10. //
  11. //------------------------------------------------------------------->
  12. //------------------------------------------------------------------->
  13.  
  14.         #include "colors.inc"
  15.         #include "textures.inc"
  16.         #include "skies.inc"
  17.         #include "golds.inc"
  18.         #include "stones.inc"
  19.         #include "woods.inc"
  20.         #default { finish { Shiny } }
  21.  
  22. //------------------------------------------------------------------->
  23. //------------------------------------------------------------------->
  24. //
  25. // Choose a camera.
  26.  
  27.         #declare Which_Camera = 1
  28.  
  29. // Close-up view.
  30.  
  31.         #if ( Which_Camera = 1 )
  32.                 camera { location < 0, 120, -250 >
  33.                 look_at < 0, 120, 0> }
  34.         #end
  35.  
  36. // Final camera position.
  37.  
  38.         #if ( Which_Camera = 2 )
  39.                 camera { location < 135*12, 8*12, -21*12>
  40.                 look_at < 121*12, 1*12, 0> }
  41.         #end
  42.  
  43. //------------------------------------------------------------------->
  44. //------------------------------------------------------------------->
  45. //
  46. // Miscellaneous stuff.
  47.  
  48.         light_source { < -1000, 1000, -1000 > color White }
  49.         light_source { <     0, 1000, -1000 > color White }
  50.         light_source { <  1000, 1000, -1000 > color White }
  51.  
  52.         background { White }
  53.         #declare R=seed(0)
  54.  
  55.         cylinder { < 0, 0, 0 > < 0, -1, 0 >, 5000
  56.             pigment { checker SteelBlue, Yellow scale 16 }
  57.             rotate y*30 }
  58.  
  59. //------------------------------------------------------------------->
  60. //------------------------------------------------------------------->
  61. //
  62. // Include the tree include file (what else???).
  63.  
  64.         #include "ptd_tree.inc"
  65.  
  66. //------------------------------------------------------------------->
  67. //------------------------------------------------------------------->
  68. //
  69. // Show the tree.
  70.  
  71.         #if ( Which_Camera = 1 )
  72.                 object { Complete_Tree scale 14 }
  73.         #end
  74.  
  75.         #if ( Which_Camera = 2 )
  76.                 object { Complete_Tree
  77.                         scale 14
  78.                         translate < 70*12, 0, 38*12> }
  79.         #end
  80.  
  81. //------------------------------------------------------------------->
  82. //------------------------------------------------------------------->
  83. //
  84. // End of this file.
  85.  
  86.